<extend name="Public/header"/>
<block name="main">
<body class="bgeee">
    <div class="header-container">
        <div class="weui-cell">
            <div class="weui-cell__hd fs0">
                <img src="__WEBPUBLIC__/Home/img/lefticon.png" class="slimg" />
            </div>
            <div class="weui-cell__bd texcen">
                <p>查询结果</p>
            </div>
        </div>
    </div>
    <div class="xq_container">
        <div class="pad10 colbbb">失信人资料</div>
        <div class="weui-cells mat0 uinput ">
            <div class="weui-cell">
                <div class="weui-cell__hd">姓名</div>
                <div class="weui-cell__bd">
                    {$resdata[0]['name']}
                    {$name}
                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">身份证号</div>
                <div class="weui-cell__bd">
                    {$resdata[0]['idcard']}
                    {$resdata[0]['idcardno']}
                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">籍贯</div>
                <div class="weui-cell__bd">
                    {$resdata[0]['area']}
                    {$resdata[0]['province']}

                </div>

            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">关注人数</div>
                <div class="weui-cell__bd">
                    {$count}
                </div>
                <div class="fs0">
                    <div class="weui-btn putgz weui-btn_mini bgff0 fs0-8">
                        <if condition="empty($isgz)">未关注<else/>已关注</if>
                    </div>
                </div>

            </div>
        </div>

        <div class="pad10 colbbb">失信记录</div>
        <div class="weui-cells mat0">
                <volist name="resdata" id="resobj" key="index">
                    <div class="weui-cell" linkto="{:U('Jubao/showinfo')}/type/{$_REQUEST['type']}/ind/{$index}/name/{$_REQUEST['name']}">
                        <div class="weui-cell__hd">{$index}</div>
                        <div class="weui-cell__bd pad0-10 statusqg">
                            <div class="fs1">{$resobj['remark']}{$resobj['baseonno']}</div>
                            <div class="fs0-8 colccc">{$resobj['year']}-{$resobj['datestr']}{$resobj['filingdate']}</div>
                        </div>
                    </div>
                </volist>
        </div>

    </div>
    <!--<div class="weui-tab footer-container">
        <div class="weui-tabbar bgfff">
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="__WEBPUBLIC__/Home/img/f1.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">全部(15)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="__WEBPUBLIC__/Home/img/f2.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">法律案件(5)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item">
                <img src="__WEBPUBLIC__/Home/img/f3.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">企业公示(5)</p>
            </a>
            <a href="javascript:;" class="weui-tabbar__item weui-bar__item_on">
                <img src="__WEBPUBLIC__/Home/img/f1on.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">私人曝光(5)</p>
            </a>
        </div>
    </div>-->
</body>
</block>
<block name="footerjs">
    <if condition="empty($isgz)">
    <script>
        $(".putgz").on('click',function () {
            var name = "{$resdata[0]['name']}{$name}";
            var idcardno = "{$resdata[0]['idcardno']}{$resdata[0]['idcard']}";
            var area = "{$resdata[0]['area']}{$resdata[0]['province']}";
            var snum = "{$resdata|count}";
            var data1 = {
                "name" : name,
                "idcardno" : idcardno,
                "area" : area,
                "snum" : snum
            };
            requestUrl("{:U('Jubao/addgz')}",data1,function (res) {
                if ( res.message == "success" ) {
                    window.location.reload();
                }else{
                    layer.msg(res.message);
                }
            }.bind(this))
        });
    </script>
    </if>
</block>